<!DOCTYPE html>
<html>
<head>
    <title>九亩点菜-{$title}</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
	<meta name="apple-mobile-web-app-status-bar-style" content="black" />
	<meta name="format-detection" content="telephone=no" />
    <link href="__PUBLIC__/css/ui.css" rel="stylesheet"  type="text/css" />
    <link href="__PUBLIC__/css/style.css" rel="stylesheet"  type="text/css" />
    <script type="text/javascript" src="__PUBLIC__/js/jquery.min.js"></script>
    <script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
    <style>
    .icon-msg:before {
	    color:rgb(121,45,0);
    }
	.text-area>.msg-desc, .text-area>.msg-desc>#time {
	    color: rgb(121,45,0);
	    font-size: 14px;
	    font-weight: 900;
    }
    .bg-blue {
	    background: url('__PUBLIC__/images/info-diwen.jpg') no-repeat center center fixed;
	    -webkit-background-size: cover;
	    -moz-background-size: cover;
	    -o-background-size: cover;
	   background-size: cover;
    }
    </style>
</head>
<body >
<div class="main-cont menu-list bg-blue">
    <div class="msg">
            <div class="icon-area"><i class="{$icontype} icon-msg"></i></div>
            <div class="text-area">
                <h2 class="msg-title"></h2>
                <p class="msg-desc">{$msg}</p>
                <if condition="$url eq null">
                <p class="msg-desc">页面将<span id="time">5</span>秒后关闭！</p>
                <else />
                <p class="msg-desc">页面将<span id="time">5</span>秒后跳转到“我的订单”！</p>
                </if>
            </div>
            
        </div>
    </div>
</div>

<script type="text/javascript">
$(function(){
    
    var wHeight=$(window).height();
    var hHeight=$(".header").height();
    $(".main-cont").css("min-height",wHeight-hHeight);

});
</script>
<script type="text/javascript">
wx.config({
	debug:	false,
	appId:	'{$signpackage["appId"]}',
	timestamp:	{$signpackage["timestamp"]},
	nonceStr:	'{$signpackage["nonceStr"]}',
	signature:	'{$signpackage["signature"]}',
	jsApiList:	[
		'closeWindow',
	]
});
wx.ready(function(){
	var time = $('#time').text();
	var interval = setInterval(function(){
		time = time - 1;
		$('#time').text(time);
		if (time == 0) {
			clearInterval(interval);
			<if condition="$url eq null">
			wx.closeWindow();
			<else />
			window.location.href ='{$url}';
			</if>
		}
	}, 1000);
});
</script>
</body>
</html>